import 'package:flutter/material.dart';
import 'package:get/get.dart';

class ShopInfoController extends GetxController{
  ScrollController? scrollController;

  var appBarColor = Colors.transparent.obs;

  @override
  void onInit() {
    super.onInit();
    scrollController = ScrollController();
    scrollController!.addListener(() {
      debugPrint("${scrollController!.offset}");
      if(scrollController!.offset>30){
        appBarColor.value = Colors.white;
      }else{
        appBarColor.value = Colors.transparent;
      }
    });
  }
}